home *** CD-ROM | disk | FTP | other *** search
/ Delphi Developer's Kit 1996 / Delphi Developer's Kit 1996.iso / power / dialer / readme.txt < prev   
Encoding:
Text File  |  1995-12-22  |  1.5 KB  |  57 lines

  1.  
  2. Dialer is a small non visual component which allows you to dial phone
  3. numbers from your Delphi applications. I am not a great expert in 
  4. communications but it works fine for my modem. You can modify it as much
  5. as you wish.
  6.  
  7. Dialer has four published properties, which will appear in you Object
  8. Inspector.
  9.  
  10. ComPort      - Set a communication port of your modem (dpCom1..dpCom4);
  11. Confirm      - true if you wish dialer to ask you if you are sure to dial 
  12.                the number;
  13. Method       - Dialing method - Pulse or Tone
  14. NumberToDial - string, which contains Phone Number you wish to dial e.g. 
  15.                '911' :)
  16.  
  17. You can set these properties from Object Inspector or during the run-time.
  18.  
  19. There is one public procedure: Execute
  20.  
  21. After you add an icon representing dialer (BTW it looks a bit ugly, but I am
  22. a poor designer) you can use TButton component to run it. e.g.
  23.  
  24. procedure TForm1.Button1Click(Sender: TObject);
  25. begin
  26.   Dialer1.Execute;
  27. end;
  28.  
  29. You can create the Dialer component "On Fly", without adding its icon to
  30. your form:
  31.  
  32. procedure TForm1.Button1Click(Sender: TObject);
  33. var
  34.   TempDialer : TDialer;
  35. begin
  36.   TempDialer:=TDialer.Create(Self);
  37.   with TempDialer do
  38.   begin
  39.     ComPort:=dpCom4;
  40.     Confirm:=true;
  41.     Method:=dmTone;
  42.     NumberToDial:='1(222)333-4444';
  43.     Execute;
  44.     Free;
  45.   end;
  46. end;
  47.  
  48. in this case don't forget to add to your uses statement Dialer unit.
  49.  
  50. That's it. Have fun. Any comments and improvements (including ugly icon) are
  51. welcome.
  52.  
  53. Regards
  54.  
  55. Archie
  56.  
  57. 75231,330